Skip to content

Support encoder-decoder models (BART, T5)#14

Merged
lukasgarbas merged 3 commits intomainfrom
encoder-decoder-support
Apr 19, 2025
Merged

Support encoder-decoder models (BART, T5)#14
lukasgarbas merged 3 commits intomainfrom
encoder-decoder-support

Conversation

@lukasgarbas
Copy link
Collaborator

@lukasgarbas lukasgarbas commented Apr 4, 2025

Adds support for encoder-decoder models by extracting hidden states from the encoder only. This unlocks BART, T5, CodeT5, StarCoder and similar models.

Tested with bart-base and t5-base, the snippet from #8 now runs as expected.

@lukasgarbas lukasgarbas merged commit 07d43c3 into main Apr 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant